<?php

namespace app\exception;

use yii\base\Exception;

/**
 * Class MyException
 * @package app\exception
 */
class MyException extends Exception
{
    public function getInfo()
    {
        return [
            'code'      => $this->getCode(),
            'file'      => $this->getFile(),
            'line'      => $this->getLine(),
            'message'   => $this->getMessage(),
            'trace'     => $this->getTrace(),
        ];
    }
}